package demo1;

class Student{
    //成员变量
    public String name;
    public int score;
    //类变量
    public static String classes = "火箭6班";
    //构造方法
    public Student(){
        System.out.println("构造方法!");
    }

    //类方法
    public static void fun1(){
        Student stu = new Student();
        stu.name = "jay";           //正确
        System.out.println("类方法");
    }
    //成员方法
    public void fun2(String name, int score){
        this.name = name;
        this.score = score;
    }
}
public class Test {
    public static void main(String[] args){
        System.out.println(Student.classes);
    }
}
